package com.battle.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.battle.pojo.check.SensitiveEntity;
import com.battle.pojo.check.SensitiveField;
import com.gitee.sunchenbin.mybatis.actable.annotation.TableComment;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import lombok.Data;
import nirvana.core.domains.ann.AccEntity;
import nirvana.core.domains.entity.DomainBaseEntity;
import nirvana.core.domains.enums.EntityType;

import java.util.List;


/**
 * @author anni.zhu
 * @author anni.zhu@king-v.com
 * Created in 2024/8/22 14:33
 */
@Data
@TableName(value = "USERS", autoResultMap = true)
@AccEntity(value = "用户", type = EntityType.SERVICE_ENTITY)
public class User extends DomainBaseEntity<User> {

    /**
     * 名称
     */

    @Column(

            length = 255
    )
    private String name;

    /**
     * 浙政钉code
     */
    @Column(
            length = 255
    )
    private String employeeCode;

    /**
     * 是否政府用户
     */
    @Column
    private Boolean isGovernment;

    /**
     * 电话
     */
    @Column(

            length = 255
    )
    private String phone;


    /**
     * 职务
     */
    @Column(

            length = 255
    )
    private String functionName;

    /**
     * 账号
     */
    @Column(

            length = 255
    )
    private String accounts;


    /**
     * 密码
     */
    @Column(
            length = 100
    )

    private String passwords;


    /**
     * 是否为系统用户
     */
    @Column(
    )
    private Boolean isSystem;

}
